package school;

public class Person {
    protected String id;
    protected String name;
    protected String gender;

    public Person(String id, String name, String gender) {
        this.id = id;
        this.name = name;
        this.gender = gender;
    }

        // ... 其他属性和构造方法

    public String getName() {
        return name;
        }
    // 通用信息打印方法（父类定义）
    public void printInfo() {
        System.out.println("=== 基本信息 ===");
        System.out.println("编号：" + id);
        System.out.println("姓名：" + name);
        System.out.println("性别：" + gender);
    }
}